package com.wing.order.model.request;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import com.wing.order.model.entity.OldNewOrder;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 以旧换新(存旧刀，领新刀)Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class OldNewOrderForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 存刀任务编号
     */
    private String code;

    /**
     * 订单id
     */
    private Long deliveryId;

    /**
     * 状态
     */
    private OldNewOrder.Status status;

    /**
     * no
     */
    private Integer no;

    /**
     * day
     */
    private Integer day;

    /**
     * 设备台机
     */
    private String deviceCode;

    /**
     * 是否已同步：no(0,未同步);yes(1,已同步);
     */
    private Integer isSyns;

    /**
    * 同步时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime synsTime;

    /**
     * 是否已形成账单
     */
    private OldNewOrder.IsBill isBill;

    /**
     * companyId
     */
    private Long companyId;

    /**
     * 之前领新单id(关联cab_cell_inventory_inout表的id)
     */
    private Long oldCellInventoryInoutId;

    /**
     * 暂存柜存入id(关联cab_storage_inventory_inout表的id)
     */
    private Long storageInventoryInoutId;

    /**
     * 新领新单id(关联cab_cell_inventory_inout表的id)
     */
    private Long newCellInventoryInoutId;
    /**
     * skuCode
     */
    private String skuCode;

    public interface Add{}

    public interface Update{}


    private Long workOrderId;

    private String enterpriseCode;

    private String departmentName;

    private String roleName;
}
